package handler

import (
	"gin_demo/model"
	"log"

	"github.com/gin-gonic/gin"
)

func StartPage(c *gin.Context) {
	var person model.Person
	if c.ShouldBindQuery(&person) == nil {
		log.Println("====== Only Bind By Query String ======")
		log.Println(person.Name)
		log.Println(person.Address)
	}
	c.String(200, "Success")
}
